// pages/components/mytree/mytree.js
Component({
    properties: {
      parents: Array,
      children: Array,
      model: Object,
      nodeStyle: String
    },
  
    data: {
      treeSpanStyle: ''
    },
  
    methods: {
      //点击出现弹窗
      tapItem: function(e) {
        var item = e.currentTarget.dataset.item;
        this.triggerEvent('tapitem', { item: item, parents: this.properties.parents, children: this.properties.children }, { bubbles: true, composed: true });
      }
    },
  
    ready: function(e) {
      this.setData({
        treeSpanStyle: 'outline:none',
      });
    },
  })